package com.tangxiya.ya12_13;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

public class Data {
    public static API getAPI() {

        return  new Retrofit.Builder().baseUrl("http://www,weather.com.cn")
                .addConverterFactory(GsonConverterFactory.create())
                .build()
                .create(API.class);

    }
}
